<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <!-- 团支书 -->
   <title>入党管理</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<link rel="stylesheet" type="text/css" href="css/f/navs.css">
	<link rel="stylesheet" type="text/css" href="css/f/default.css">
	<link rel="stylesheet" type="text/css" href="css/f/assignment.css"/>
	<script src="js/jquery.min.js"></script>
	<script src="js/f/default.js"></script>
</head>
<body>
	<div class="all">
		<jsp:include page="/nav.jsp"></jsp:include>
        <div class="rightall float-left">
       		<input type="hidden" value="${error_msg }" name="errorMsg" />
        	 	<div class="already">
	                <div class="already-title">
	        			<div class="left">入党管理</div>
	        		</div>
       			</div>
       			 <table>
  					<tr class="tr-style-head">
	  					<td>党员姓名</td>
	  					<td>所属班级</td>
	  					<td>是否完成党校</td>
	  					<td>住址</td>
	  					<td>电话</td>
	  					<td>邮箱</td>
	  					<td>入学时间</td>
	  					<td>政治面貌</td>
	  					<td>操作</td>
  					</tr>
  				<c:forEach var ="b" items="${stus}">
  					<tr class="tr-style">
	  					<td>${b.stuName}</td>
	  					<td>${b.stuClassName}</td>
	  					<c:if test="${b.trainState==1}">
	  					<td>未完成</td>
	  					</c:if>
	  					<c:if test="${b.trainState==2}">
	  					<td>已完成</td>
	  					</c:if>
	  					<td>${b.stuAddress}</td>
	  					<td>${b.stuPhone}</td>
	  					<td>${b.stuEmail}</td>
	  					<td>
	  						<fmt:formatDate value="${b.enrollTime}" pattern="yyyy年MM月dd日"/>
	  					</td>
	  					<td><a onclick="">${b.stuPoliticsStatus}</a></td>
	  					<td>
		  					<c:if test="${b.trainState==1}">
		  						<a style="color:#446EE6;" onclick="yy('确认完成培训？','partyStateCompleted.do',this)" value="sid=${b.stuId }">完成培训</a>
		  					</c:if>
		  					<c:if test="${b.trainState==2}">
		  						<a style="color:#bbb" href="javascript:void(0)">完成培训</a>
		  					</c:if>
	  					</td>
	  				</tr>
	  				</c:forEach>
	  			</table> 	
			 		 <c:if test="${size > 1 }">
               		<div class="previous">
	               		<c:if test="${pageNo>1}">
  				   		<a href="cadre/queryApplicationInfo.do?pageNo=${pageNo-1}">上一页</a>
	                	</c:if>
	                   	<c:forEach var="p" begin="1" end="${size }" step="1">
	                   		<c:if test="${p==pageNo }">
	                   			<span style="font-size:18px;color:#446ee6;">&nbsp;${p}&nbsp;</span>
	                   		</c:if>
	                   		<c:if test="${p!=pageNo }">
	                   			<a href="cadre/queryApplicationInfo.do?pageNo=${p}" >&nbsp;${p}&nbsp;</a>
	                   		</c:if>
	                   	</c:forEach>
	                    <c:if test="${pageNo<size}">
						<a href="cadre/queryApplicationInfo.do?pageNo=${pageNo+1}">下一页</a>	   
		             	</c:if>
                   </div>
                </c:if>	
                
                <!--  <div class="float-right excel"><button name="" class="btn-style">导出文件</button></div> -->
                </div>	
      </div>
  </body>
  
</html>
